#include <iostream>
#include <string>
using namespace std;
int main(){
    string str = "hello武汉hello花山";
    for(size_t i = 0; i < str.size();){
        char ch = str[i];
        // ch & 1000 0000 
        if( (ch&0x80) == 0 ){
            cout << "English ch = " << str.substr(i,1) << "\n";
            ++i;
        }
        else{
            cout << "Chinese ch = " << str.substr(i,3) << "\n";
            i += 3;
        }
    }
    return 0;
}

